package com.example.demo.web.servlet;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 * <p>@author Henry.Y</p>
 *
 * <p>@date 2019-07-27</p>
 */
//@WebServlet(name="unAuthenticatedServlet",urlPatterns="/unauthorized")
public class UnAuthorizedServlet extends HttpServlet{

	/**
	 * 
	 */
    private static final long serialVersionUID= -8672733279742158557L;
    
    protected void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{
    	request.getRequestDispatcher("/WEB-INF/jsp/unauthenticated.jsp").forward(request, response);
    }

}
